package components.banners
{
	import UIFree.uif_component;
	import UIFree.uif_ecomponent;

	public class clt_fotocacheBanner extends uif_ecomponent {
	    protected const genders: Object = ['f', 'm'];
		public function clt_fotocacheBanner(parent:uif_component, ax:int=0, ay:int=0, awidth:int=0, aheight:int=0, styleClass:String='') {
			super(parent, ax, ay, awidth, aheight, styleClass);
		}
		
		public function get params() : String {
	        return "?ref_id=468282879&first_name=" + (user.first_name?user.first_name:user.nick) + "&sex=" + user.sex + 
	        			"&gender=" + genders[user.sex] + "&bdate=" + user.birthday + "&photo_url=" + (user.pic_big?user.pic_big:user.pic);
		}
		
		public function get user(): Object {
			return (app as clt_clothingBase).user;
		} 
	}
}